x86 cpuid: leaf 4 sub-index goes in %ecx, not %ebx
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Oct 2008 14:58:09 +0000 (15:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Oct 2008 14:58:09 +0000 (15:58 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/traps.c

index 3046b8949571dc8fe4ddd273197d9c6374396642..ce96ad6f68eac02c958ce31274851727bc9aca5a 100644 (file)
@@ -710,7 +710,7 @@ static void pv_cpuid(struct cpu_user_regs *regs)
     if ( current->domain->domain_id != 0 )
     {
         if ( !cpuid_hypervisor_leaves(a, &a, &b, &c, &d) )
-            domain_cpuid(current->domain, a, b, &a, &b, &c, &d);
+            domain_cpuid(current->domain, a, c, &a, &b, &c, &d);
         goto out;
     }